import { MeshPhongMaterial, DoubleSide, PlaneGeometry, Mesh } from "three";


export default class Env {
    // 地板
    static floorMesh = () => {
        const material = new MeshPhongMaterial({
            side: DoubleSide,
            color: "#6bb473",
            emissive: "#d3cfa7",
        });
        const FloorGeometry = new PlaneGeometry(200, 200);
        const floorMesh = new Mesh(FloorGeometry, material);
        floorMesh.rotation.x = Math.PI / 2;
        floorMesh.receiveShadow = true;
        floorMesh.position.set(0, -1.02, 0);
        return floorMesh;
    }
    
} 